﻿using UnityEngine;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
using System.IO;
using UnityEngine.UI;
using System.Collections.Generic;

public class GameDataMgr
{
    const string HighScorekey = "HighScoreKEY";
   
    public static int HighScore
    {
        get { return PlayerPrefs.GetInt(HighScorekey, 0); }
        set
        {
            if (value > PlayerPrefs.GetInt(HighScorekey, 0))
            {
                PlayerPrefs.SetInt(HighScorekey, value);
            }
        }
    }

    const string Hintkey = "HintKEY";

    public static int Hint
    {
        get { return PlayerPrefs.GetInt(Hintkey, 3); }
        set
        {
           
            PlayerPrefs.SetInt(Hintkey, value);
           
        }
    }

   
}
